package com.spc.car.data.domain.adm.po;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.spc.car.data.entity.adm.AdmPrivateVehicleInfo;
import com.spc.car.data.util.PageParam;
import lombok.Data;

@Data
public class AdmPrivateVehiclePO<T> extends PageParam<T> {

    public Wrapper toWrapper() {
        LambdaQueryWrapper<AdmPrivateVehicleInfo> wrapper = new LambdaQueryWrapper<>();
        wrapper.orderByDesc(AdmPrivateVehicleInfo::getCreateTime);
        return wrapper;
    }
}
